package StudyCode.summary.mycollection;

import java.util.LinkedList;
import java.util.List;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class ConcatLists {
	public static <T> List<T> concatLists(Iterable<? extends T>... lists) {
		final List<T> result = new LinkedList<T>();
		for (final Iterable<? extends T> list : lists) {
			for (final T item : list) {
				result.add(item);
			}
		}
		return result;
	}
}
